package com.raymond.mybatisspring.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.raymond.mybatisspring.mapper.UserMapper;
import com.raymond.mybatisspring.pojo.User;

/**
 * @author raymond 2013-11-17 下午5:33:40
 *
 */
@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserMapper userMapper;
	
	@Autowired
    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

	@Override
	public User getSomeOneById(String id) {
//		User user = userMapper.findById(id);
//		System.out.println(user);
//		return user;
		return this.userMapper.findById(id);
	}
}
